package com.powerunion.datacollection.dao;

import java.util.List;
import com.powerunion.datacollection.model.ActivityInstance;

public interface ProcessInstanceDao {
	public boolean save(ActivityInstance activityInfo,String itemId,String procId,String exactlyTime)throws DaoException;
	public List getProcessInfo(String processId)throws Exception;
	public boolean delete(String doumentId);
	public boolean initSubmissionWorkItems(String processId,String formId) throws DaoException;
	public boolean saveProcessInfo(List activityList,String procId,String procInstanceId,String currentUser,String exactlyTime)
	   throws DaoException;
	/**
	 * 得到流程实例的流程定义ID
	 * @param item_id
	 * @return
	 * @throws DaoException
	 */
	public String getProcDefineId(String itemId) throws DaoException;
	/**
	 * 检测流程的环节信息设置
	 * @param procId
	 * @return
	 * @throws DaoException
	 */
	public String validateActivityInfo(String procId) throws DaoException;
	
	public List getProcessSurveillanceInfo(String processId) throws DaoException;
	
	public List getTaskDetails(String processId) throws Exception;

}
